Ext.define('HRMobile.model.Job', {
    extend: 'Ext.data.Model',
    config: {
     fields: ['jobTitle',
              'jobEmpStatus',
              'jobSubUnit',
              'jobLocation',
              'joinedDate',
              'contractStartDate',
              'contractEndDate',
              'terminatedStatus',
              {name: 'fullTerminatedStatus',
        	  convert: function(value, record) {
        		  var fullTerminatedStatus = record.get('terminatedStatus');
                  
                  if (fullTerminatedStatus == 0)
                	  return 'No';
                  else
                	  return 'Yes';
              }}
              ]
    }
});